Skip to content

Add in-code containers policy factories - #977

Open
jonesbusy wants to merge 1 commit into
oras-project:mainfrom
jonesbusy:issue-975-containers-policy-lazy-load
Open

jonesbusy wants to merge 1 commit into
oras-project:mainfrom
jonesbusy:issue-975-containers-policy-lazy-load

Conversation

@jonesbusy

Copy link
Copy Markdown
Collaborator

Description

Load the default containers policy lazily unless an explicit policy is supplied.

Fix #975

Testing done

Submitter checklist

  • I have read and understood the CONTRIBUTING guide
  • I have run mvn license:update-file-header, mvn spotless:apply, pre-commit run -a, mvn clean install before opening the PR

Load the default containers policy lazily unless an explicit policy is supplied.

Signed-off-by: Valentin Delaye <jonesbusy@users.noreply.github.com>
@jonesbusy jonesbusy added the enhancement New feature or request label Nov 21, 2026
@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.98%. Comparing base (f8e50cc) to head (ee2fc6e).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...c/main/java/land/oras/policy/ContainersPolicy.java 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #977      +/-   ##
============================================
+ Coverage     86.57%   86.98%   +0.41%     
- Complexity     1320     1323       +3     
============================================
  Files            51       51              
  Lines          4215     4219       +4     
  Branches        598      598              
============================================
+ Hits           3649     3670      +21     
+ Misses          326      309      -17     
  Partials        240      240              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Supplying a ContainersPolicy should not load the system policy.json; allow building a policy in code

1 participant